package com.raigor.application.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.raigor.common.annotation.Excel;
import com.raigor.common.core.domain.BaseEntity;

/**
 * 测试脚本对象 test_script
 *
 * @author ruoyi
 * @date 2021-12-21
 */
public class TestScript extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 脚本ID */
    private Long scriptId;

    /** 测试脚本 */
    @Excel(name = "测试脚本")
    private String name;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    /** 最新一次测试状态 */
    @Excel(name = "最新一次测试状态")
    private BigDecimal latestTestStatus;

    /** 标签 */
    @Excel(name = "标签")
    private String tag;

    /** 备注 */
    @Excel(name = "备注")
    private String operation;

    public void setScriptId(Long scriptId)
    {
        this.scriptId = scriptId;
    }

    public Long getScriptId()
    {
        return scriptId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUploadTime(Date uploadTime)
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime()
    {
        return uploadTime;
    }
    public void setLatestTestStatus(BigDecimal latestTestStatus)
    {
        this.latestTestStatus = latestTestStatus;
    }

    public BigDecimal getLatestTestStatus()
    {
        return latestTestStatus;
    }
    public void setTag(String tag)
    {
        this.tag = tag;
    }

    public String getTag()
    {
        return tag;
    }
    public void setOperation(String operation)
    {
        this.operation = operation;
    }

    public String getOperation()
    {
        return operation;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scriptId", getScriptId())
            .append("name", getName())
            .append("uploadTime", getUploadTime())
            .append("latestTestStatus", getLatestTestStatus())
            .append("tag", getTag())
            .append("operation", getOperation())
            .toString();
    }
}
